SharePointFileLocation Class

Represents the location of a file in a SharePoint document library.This class stores and parses location information.

Namespace: Microsoft.LearningComponents.SharePoint

Assembly: Microsoft.LearningComponents.SharePoint.dll

Syntax
C#

public class SharePointFileLocation

Constructors
Name Description
Ð SharePointFileLocation (Guid, Guid, Guid, int)

Create a SharePointFileLocation without providing a timestamp.

Ð SharePointFileLocation (Guid, Guid, Guid, int, DateTime)

Create a SharePointFileLocation with optional timestamp.

Ð SharePointFileLocation (SPWeb, Guid, int)

Create a SharePointFileLocation by providing the SPWeb object.

Properties
Name Description
Ð FileId

Gets the unique identifier of the file portion of the location.

Ð SiteId

Gets the site id of the location.

Ð Timestamp

Gets the timestamp associated with the location.

Ð VersionId

Gets the identifier of the version of the location.

Ð WebId

Gets the identifier of the web portion of the location.

Methods
Name Description
Ð ToString

Gets the location formatted as a string.

ÐS TryParse

Attempts to parse a location string into a SharePointFileLocation object.